package cn.wolfcode.designpattern.bridge;

import java.math.BigDecimal;

/**
 * @author Leon
 * @date 2021/2/23
 * 抽象化角色：支付
 */
abstract public class Pay {

    /**
     * 组合方式：支付模式
     */
    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    abstract public boolean pay(String uId, String tradeId, BigDecimal amount);
}

